#ifndef __PSE_DNS_CACHEER_H__
#define __PSE_DNS_CACHEER_H__

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "pseCacheer.h"

class PseDnsCacheer : public PseCacheer {
    protected:
        int size;
        time_t expired_time;
    public:
        PseDnsCacheer();
        ~PseDnsCacheer();
        int dns_cached(int size, time_t expired_time, char *host, size_t host_len, 
                       char *ip, size_t ip_len);
        void dump_report(char *cache_name, char* filename);
        bool dump_file(char *filename);
        bool load_file(const char* filename);
};


#endif
